/**
 * 
 */
package com.nari.interfaces.dao;

import java.util.List;

import com.nari.coreframe.dao.hibernate3.IGenericDao;
import com.nari.interfaces.model.IUploadMissionState;

/**
 * 
 * @author Xiaopeng
 * @date 2013-11-11
 */
public interface IUploadMissionStateDao extends IGenericDao<IUploadMissionState, String> {

	/**
	 * 通过任务标志(集中器号、抄表日期)查询任务实体
	 * @param concentratorNo
	 * @param recordTime
	 * @return
	 * @throws Exception
	 * @author Xiaopeng
	 * @date 2013-11-11
	 */
	public IUploadMissionState queryMissionByMark(String concentratorNo, 
			String recordTime) throws Exception;
	
	/**
	 * 通过任务标志(集中器号、抄表日期)删除任务实体
	 * @param concentratorNo
	 * @param recordTime
	 * @throws Exception
	 * @author Xiaopeng
	 * @date 2013-11-11
	 */
	public void deleteMissionByMark(String concentratorNo, String recordTime) throws Exception;
	
	/**
	 * 查询超时指定小时数（相对当前时刻）的上传任务数据
	 * @param hourAmount 用于设置的小时数
	 * @return
	 * @throws Exception
	 * @author Xiaopeng
	 * @date 2013-12-25
	 */
	public List<IUploadMissionState> queryExceedHoursMission(int hourAmount) throws Exception;
}
